package org.zjt.annotation;

import org.springframework.context.annotation.Conditional;
import org.zjt.config.RpcRoleConditional;

import java.lang.annotation.*;

/**
 * DESC
 *
 * @author
 * @create 2017-04-15 上午9:31
 **/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(RpcRoleConditional.class)
public @interface ConditionalRpcServer {
    boolean required() default true;
}
